export const proxy = {
  "/api": {
    target: "https://frankgrows.icu",
    changeOrigin: true,
    secure: false,
    ws: true,
  },
  "/img": {
    target: "https://frankgrows.icu",
    changeOrigin: true,
    secure: false,
    ws: true,
    rewrite: (path: string) => path.replace(/^\/img/, ""),
  },

  //本地
  // "/api": {
  //   target: "http://localhost:6060",
  //   changeOrigin: true,
  //   secure: false,
  //   ws: true,
  // },
  // "/img": {
  //   target: "http://localhost:6060",
  //   changeOrigin: true,
  //   secure: false,
  //   ws: true,
  //   rewrite: (path: string) => path.replace(/^\/img/, ""),
  // },
};
